import React, { FC } from "react";
import { Typography, Input } from "antd";
import { QuestionTextAreaDefaultProps, QuestionTextAreaType } from "./interface";
const { Paragraph } = Typography;
const { TextArea } = Input;
const Component: FC<QuestionTextAreaType> = (props: QuestionTextAreaType) => {
  const { title, disabled, placeholder } = { ...QuestionTextAreaDefaultProps, ...props };
  return (
    <div>
      <Paragraph strong>{title}</Paragraph>
      <div>
        <TextArea placeholder={placeholder} disabled={disabled} />
      </div>
    </div>
  );
};
export default Component;
